//
//  RegisterViewController.m
//  5.1register
//
//  Created by h92 on 14/12/23.
//  Copyright (c) 2014年 李腾飞. All rights reserved.
//

#import "RegisterViewController.h"

@interface RegisterViewController ()

@end

@implementation RegisterViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



- (IBAction)finish:(id)sender {
    
    // 
    [self dismissViewControllerAnimated:YES completion:^{
        NSLog(@"Modal View done");
        // 这不得不说是学生答卷  用NSDictionary答题
        NSDictionary *dataDict = [NSDictionary dictionaryWithObject:self.txtUsername.text
                                                             forKey:@"username"];
        [[NSNotificationCenter defaultCenter]
         postNotificationName:@"RegisterCompletionNotification"
         object:nil
         userInfo:dataDict];
        
    }];
    
}
@end
